home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15324 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nwlink.com!usenet
  2. From: Teresa Reiko <tjr19@mail.nwlink.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Obtaining file lists in C?
  5. Date: 18 Apr 1996 13:39:58 GMT
  6. Organization: Northwest Link
  7. Message-ID: <4l5gne$j0v@texas.nwlink.com>
  8. References: <gcraig.1.001653A2@interaccess.com> <4ktll1$bk5@texas.nwlink.com> <4l119oINN8os@mayne.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: port59.annex2.nwlink.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2 (Windows; U; 16bit)
  14.  
  15. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
  16.  
  17. > >This is impossible in standard C.  There is no standard C function to
  18. > >read the directories.  Most C implementations include one, however, so
  19. > >for instance in Borland C you can use findfirst and findnext, or you
  20. > >can use opendir, readdir, etc.
  21. >
  22. >The latter are preferrable, because they are part of a standard, namely
  23. >POSIX.1. They also have reentrant semantics (more than one directory reading
  24. >stream can be created and stepped simultaneously).
  25.  
  26. Well, findfirst and findnext can operate on more than one ffblk
  27. structure simultaneously.  And they are part of a standard too:
  28. the MS/PC-DOS standard.  Also, they are a lot more powerful.
  29.  
  30. ----- for every vision there is an equal and opposite revision ... -----
  31. ------------------------------------------------------------------------
  32.  Teresa Reiko    Chief Programmer, Tenbyte Software    tjr19@nwlink.com
  33. ------------------------------------------------------------------------
  34.  
  35.  
  36.